<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图像边框</title>
    <style>
        .box {
            width: 300px;
            height: 200px;
            border: 15px solid aquamarine;
            /* background-color: aquamarine; */

            border-image-source: url(./images/border.jpg);
            border-image-slice: 167;
            /* 拉伸或铺满  默认拉伸 */
            border-image-repeat: stretch;
            border-image-width: 50px;
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>